package com.nuaa.yygh.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nuaa.model.order.OrderInfo;
import com.nuaa.vo.order.OrderCountQueryVo;
import com.nuaa.vo.order.OrderQueryVo;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public interface OrderService extends IService<OrderInfo> {
    Long  saveOrder(String scheduleId, Long patientId);

    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    OrderInfo getOrder(String orderId);

    Map<String,Object> show(Long orderId);

    /**
     * 取消订单
     * @param orderId
     */
    Boolean cancelOrder(Long orderId);
    /**
     * 就诊提醒
     */
    void patientTips();

    //订单统计
    Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);

}
